package com.jk.bgmainconsumer.service;

import com.jk.bgmainconsumer.entity.GoodsEntity;
import com.jk.bgmainconsumer.entity.IndentEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 文件名称:IndentService
 *
 * @Description //TODO $
 * @Date $ $
 * 作者 郭英杰
 * Copyright (c) 2021, yuxy123@gmail.com All Rights Reserved.</pre>
 */
@Component
@FeignClient("BGORDERPROVIDER")
public interface IndentService {

    //查询未付款
    @RequestMapping(value = "ordersCheck/pandingOrders",method = RequestMethod.GET)
    List<IndentEntity> pandingOrders(@SpringQueryMap IndentEntity indent);
    //查询全部
    @RequestMapping(value = "ordersCheck/allOrders",method =RequestMethod.POST)
    List<IndentEntity> allOrders(@RequestBody IndentEntity indent);
    //回显
    @RequestMapping("ordersCheck/orderQuery")
    IndentEntity orderQuery(@RequestParam String id);
    //查询预期的商品
    @RequestMapping(value = "ordersCheck/expectGoods",method = RequestMethod.POST)
    List<GoodsEntity> expectGoods(@RequestBody GoodsEntity goods);
}
